<template>
  <div>
    占地面积500平方米 
    <button @click="showHouse">触发绑定的事件</button>
  </div>
</template>

<script>
export default {
data(){
return{}
},
methods:{
    showHouse(){
        this.$emit("customFun","500平房子")
    }
}
}
</script>

<style lang="less" scoped>
body{
    font-size: 30px;
    color: #333;
    font-style: oblique;
}
div{
    width: 200px;
    height: 300px;
    background-color: #b64daf;
}
</style>